package com.libui.thirdpartsdk.share.models

import com.libnetwork.extension.absoluteH5Url

class ShareUrlObject(
    override val title: String?,
    override val description: String? = null,
    override val thumbImage: ByteArray? = null,
    url: String,
) : ShareObjectInterface {
    override val type: ShareObjectType = ShareObjectType.URL

    var url: String = url.absoluteH5Url

    override fun toJson(): Map<String, Any> {
        val json = super.toJson().toMutableMap()

        json["url"] = url

        return json
    }
}